qx.Class.define("qx.ui.form.ow.XML",
{
	extend : qx.core.Object,
	construct : function ()
	{
		this.base(arguments);
		this._XML = "<?xml version='1.0' encoding='UTF-8' ?><xml>";
	},
	members :
	{
		_XML : null,
		addNode : function (nodeName, structure)
		{
			var node = qx.xml.Document.create(null, nodeName);
			var attributes = node.documentElement;
			for (r in structure)
			{
				attributes.setAttribute(structure[r].name, structure[r].value);
			}
			this._XML += qx.xml.Element.serialize(node);
		},
		getXML : function ()
		{
			return this._XML + "</xml>";
		}
	}
});